package com.vogue.supplymall.order.domain.mapper;

import com.vogue.supplymall.order.domain.model.OrderPayVoucher;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * The interface Order pay voucher mapper.
 *
 * @aouthor: zhangliang
 * @date: Create in 2018-04-09
 */
public interface OrderPayVoucherMapper extends BaseMapper<OrderPayVoucher, Long> {
    /**
     * Gets for order id.
     *
     * @param orderId   the order id
     * @param paymentId the payment id
     * @return the for order id
     */
    @Select("SELECT * from order_pay_voucher where orderid = #{arg0} AND paymentid = #{arg1} AND disabledflag = 0 ")
    List<OrderPayVoucher> getForOrderId(Long orderId, Long paymentId);
}
